<?php

namespace app\api\service;

use app\model\ProductSpecsName as ModelProductSpecsName;
use app\model\ProductSpecsValue;

class ProductSpecsName 
{

  public function getlist($ids)
  {
      # code...
      $spename=ModelProductSpecsName::where('id','in',$ids)->select();
      $spename->visible(['id','name','email']);
      $spename->load(['specevalue'],30);
      foreach($spename as $item){
      
       $item->svalue;
      }
      return $spename;
  }
}
